import Vue from 'vue'
import Router from 'vue-router'

import Blog from '@/components/BlogIndex'
// import canvastest from '@/components/canvastest'

// console.log(Router('history'));
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Index',
      component: Blog
    },
    {
      path:'/:page',
      name: 'page',
      component:Blog
    },
    {
      path:'/blog/:blogid',
      name:'blog',
      component:Blog
    }
    // {
    //   path: '/',
    //   name: 'canvastest',
    //   component: canvastest
    // }
  ]
})
